<?php

namespace gogrpc;

class BaseServer
{
    protected static $log_file = '';

    /**
     * 错误日志记录
     * @param $method
     * @param $status
     * @return false|int
     */
    static public function writeLog($method, $status)
    {
        return writeLog(['method_func' => $method, 'code' => $status->code, 'details' => $status->details], self::$log_file);
    }

}